package br.com.esporte.negocios.entidades;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "ponto_atleta")
public class PontoAtleta extends Entidade {

	@ManyToOne
	@JoinColumn(name = "atleta_id")
	private Atleta atleta;

	@Basic
	private Integer qtd;

	@ManyToOne
	@JoinColumn(name = "time_id")
	private Time time;

	public PontoAtleta() {

	}

	public Atleta getAtleta() {
		return atleta;
	}

	public Integer getQtd() {
		return qtd;
	}

	public Time getTime() {
		return time;
	}

	public void setAtleta(Atleta atleta) {
		this.atleta = atleta;
	}

	public void setQtd(Integer qtd) {
		this.qtd = qtd;
	}

	public void setTime(Time time) {
		this.time = time;
	}

}
